package com.demo1;

public class Test {
    public static void main(String[] args) {
        //创建对象调用方法
        //1.创建布偶猫的对象
        RagDollCat ragDollCat = new RagDollCat();
        ragDollCat.eat();
        ragDollCat.drink();
        ragDollCat.catchMouse();
        System.out.println("=========");
        //2.创建哈士奇的对象
        Husky husky = new Husky();
        husky.eat();
        husky.drink();
        husky.lookHome();
        husky.breakHome();
        System.out.println("=========");
        //3.创建中国狸花猫的对象
        LiHuaCat liHuaCat = new LiHuaCat();
        liHuaCat.eat();
        liHuaCat.drink();
        liHuaCat.catchMouse();
        System.out.println("=========");
        //4.创建泰迪的对象
        Teddy teddy = new Teddy();
        teddy.eat();
        teddy.drink();
        teddy.lookHome();
        teddy.touch();
        System.out.println("=========");
    }
}
